<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Project_name')}<i class="text-red">*</i>:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-project_name" data-rule="required" class="form-control" name="row[project_name]" type="text" value="{$row.project_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Project_address')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="form-inline" data-toggle="cxselect" data-selects="province,city,area">
                <select class="province form-control" data-rule="required" name="row[province_id]" data-url="ajax/area" style="width: 33%">
                    {if condition="$row.province_id gt 0"}
                    <option value="{$row.province_id}">{$row.project_address_arr[0]}</option>
                    {/if}
                </select>
                <select class="city form-control" data-rule="required" name="row[city_id]" data-query-name="province" data-url="ajax/area" style="width: 33%">
                    {if condition="$row.city_id gt 0"}
                    <option value="{$row.city_id}">{$row.project_address_arr[1]}</option>
                    {/if}
                </select>
                <select class="area form-control" data-rule="required" name="row[area_id]" data-query-name="city" data-url="ajax/area" style="width: 30%">
                    {if condition="$row.area_id gt 0"}
                    <option value="{$row.area_id}">{$row.project_address_arr[2]}</option>
                    {/if}
                </select>
            </div>
            <input id="c-project_address" class="form-control" name="row[project_address]" type="text" placeholder="请输入详细地址" value="{$row.project_address|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Submission_unit')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-submission_unit" class="form-control" name="row[submission_unit]" type="text" value="{$row.submission_unit|htmlentities}">
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Remark')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-remark" class="form-control" rows="5" name="row[remark]">{$row.remark}</textarea>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
